package com.swift.base;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.widget.Toast;

public  class  MessageHandler extends Handler{
	private Context mContext;
	
	public MessageHandler(Context context){
		mContext = context;
	}
	@Override
    public void handleMessage(Message msg) {
        super.handleMessage(msg);
        if (msg.obj != null){
        	Toast.makeText(mContext, msg.obj.toString(),  Toast.LENGTH_SHORT).show();
        }    
    }	
	
}